/**
 * 获取地址栏参数
 */
 export function getUrlParams() {
    const url = window.location.href;
    if ("undefined" == url) {
      return {};
    }
    let paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
    let paraObj = {};
    if (paraString == url) {
      return "";
    }
    for (let i = 0; i < paraString.length; i++) {
      let j = paraString[i];
      paraObj[j.substring(0, j.indexOf("="))] = j.substring(
        j.indexOf("=") + 1,
        j.length
      );
    }
    return paraObj;
  }
  